function abrirPopup(src, scroll, width, heigth, modal) {
	if (width == undefined || width == '') {
		width = 600;
	}
	
	if (heigth == undefined || heigth == '') {
		heigth = 500;
	}
	
	if (scroll == undefined || scroll == '') {
		scroll = 'no';
	}
	
	if (modal == undefined) {
		modal = 'no';
	}

	var popup = window.open(src, "detalhe", 
		'location=no, menubar=no, scrollbars=' + scroll 
		+ ', toolbar=no, titlebar=no, width=' + width 
		+ ', height=' + heigth 
		+ ', modal=' + modal);
	
	popup.focus();
}


function abrirPopupModal(src, scroll, width, heigth) {
	if (width == undefined || width == '') {
		width = 600;
	}
	
	if (heigth == undefined || heigth == '') {
		heigth = 500;
	}
	
	if (scroll == undefined || scroll == '') {
		scroll = 'no';
	}

	window.showModalDialog(src, "modal", "dialogWidth:" + width + "px;dialogHeight:" + heigth +"px;status:no; scroll: " + scroll);
} 